package com.mySchool.mapper;

import com.github.pagehelper.*;
import com.mySchool.entity.PO.*;
import com.mySchool.entity.DTO.*;
import org.apache.ibatis.annotations.*;
import java.util.*;
/**
* @author : Hinton
* @date : 2024/10/18 上午9:29
*/
@Mapper
public interface BookMapper {
    // 抽象能力
    List<BookPO> query(BookDetailQueryRequest request);

    void insert(BookPO bookP);

    /**
     * 根据id批量删除
     * @param ids
     */
    void deleteByIds(List<Integer> ids);

    void update(BookUpdateRequest newBook);

    List<BookPO> findByName(String name);

    List<BookDetailResponse> queryHigher(String name);

}
